{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport WarningFilled from \"@ant-design/icons/es/icons/WarningFilled\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport warning from '../_util/warning';\nimport noFound from './noFound';\nimport serverError from './serverError';\nimport unauthorized from './unauthorized';\nimport useStyle from './style';\nexport var IconMap = {\n  success: CheckCircleFilled,\n  error: CloseCircleFilled,\n  info: ExclamationCircleFilled,\n  warning: WarningFilled\n};\nexport var ExceptionMap = {\n  '404': noFound,\n  '500': serverError,\n  '403': unauthorized\n};\n// ExceptionImageMap keys\nvar ExceptionStatus = Object.keys(ExceptionMap);\nvar Icon = function Icon(_ref) {\n  var prefixCls = _ref.prefixCls,\n    icon = _ref.icon,\n    status = _ref.status;\n  var className = classNames(\"\".concat(prefixCls, \"-icon\"));\n  process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'Result', \"`icon` is using ReactNode instead of string naming in v4. Please check `\".concat(icon, \"` at https://ant.design/components/icon\")) : void 0;\n  if (ExceptionStatus.includes(\"\".concat(status))) {\n    var SVGComponent = ExceptionMap[status];\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: \"\".concat(className, \" \").concat(prefixCls, \"-image\")\n    }, /*#__PURE__*/React.createElement(SVGComponent, null));\n  }\n  var iconNode = /*#__PURE__*/React.createElement(IconMap[status]);\n  if (icon === null || icon === false) {\n    return null;\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: className\n  }, icon || iconNode);\n};\nvar Extra = function Extra(_ref2) {\n  var prefixCls = _ref2.prefixCls,\n    extra = _ref2.extra;\n  if (!extra) {\n    return null;\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-extra\")\n  }, extra);\n};\nvar Result = function Result(_ref3) {\n  var customizePrefixCls = _ref3.prefixCls,\n    customizeClassName = _ref3.className,\n    subTitle = _ref3.subTitle,\n    title = _ref3.title,\n    style = _ref3.style,\n    children = _ref3.children,\n    _ref3$status = _ref3.status,\n    status = _ref3$status === void 0 ? 'info' : _ref3$status,\n    icon = _ref3.icon,\n    extra = _ref3.extra;\n  var _React$useContext = React.useContext(ConfigContext),\n    getPrefixCls = _React$useContext.getPrefixCls,\n    direction = _React$useContext.direction;\n  var prefixCls = getPrefixCls('result', customizePrefixCls);\n  // Style\n  var _useStyle = useStyle(prefixCls),\n    _useStyle2 = _slicedToArray(_useStyle, 2),\n    wrapSSR = _useStyle2[0],\n    hashId = _useStyle2[1];\n  var className = classNames(prefixCls, \"\".concat(prefixCls, \"-\").concat(status), customizeClassName, _defineProperty({}, \"\".concat(prefixCls, \"-rtl\"), direction === 'rtl'), hashId);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: className,\n    style: style\n  }, /*#__PURE__*/React.createElement(Icon, {\n    prefixCls: prefixCls,\n    status: status,\n    icon: icon\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-title\")\n  }, title), subTitle && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-subtitle\")\n  }, subTitle), /*#__PURE__*/React.createElement(Extra, {\n    prefixCls: prefixCls,\n    extra: extra\n  }), children && /*#__PURE__*/React.createElement(\"div\", {\n    className: \"\".concat(prefixCls, \"-content\")\n  }, children)));\n};\nResult.PRESENTED_IMAGE_403 = ExceptionMap['403'];\nResult.PRESENTED_IMAGE_404 = ExceptionMap['404'];\nResult.PRESENTED_IMAGE_500 = ExceptionMap['500'];\nexport default Result;","map":{"version":3,"names":["CheckCircleFilled","CloseCircleFilled","ExclamationCircleFilled","WarningFilled","classNames","React","ConfigContext","warning","noFound","serverError","unauthorized","useStyle","IconMap","success","error","info","ExceptionMap","ExceptionStatus","Object","keys","Icon","_ref","prefixCls","icon","status","className","process","env","NODE_ENV","length","includes","SVGComponent","createElement","iconNode","Extra","_ref2","extra","Result","_ref3","customizePrefixCls","customizeClassName","subTitle","title","style","children","useContext","getPrefixCls","direction","wrapSSR","hashId","PRESENTED_IMAGE_403","PRESENTED_IMAGE_404","PRESENTED_IMAGE_500"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/result/index.js"],"sourcesContent":["import CheckCircleFilled from \"@ant-design/icons/es/icons/CheckCircleFilled\";\nimport CloseCircleFilled from \"@ant-design/icons/es/icons/CloseCircleFilled\";\nimport ExclamationCircleFilled from \"@ant-design/icons/es/icons/ExclamationCircleFilled\";\nimport WarningFilled from \"@ant-design/icons/es/icons/WarningFilled\";\nimport classNames from 'classnames';\nimport * as React from 'react';\nimport { ConfigContext } from '../config-provider';\nimport warning from '../_util/warning';\nimport noFound from './noFound';\nimport serverError from './serverError';\nimport unauthorized from './unauthorized';\nimport useStyle from './style';\nexport const IconMap = {\n  success: CheckCircleFilled,\n  error: CloseCircleFilled,\n  info: ExclamationCircleFilled,\n  warning: WarningFilled\n};\nexport const ExceptionMap = {\n  '404': noFound,\n  '500': serverError,\n  '403': unauthorized\n};\n// ExceptionImageMap keys\nconst ExceptionStatus = Object.keys(ExceptionMap);\nconst Icon = _ref => {\n  let {\n    prefixCls,\n    icon,\n    status\n  } = _ref;\n  const className = classNames(`${prefixCls}-icon`);\n  process.env.NODE_ENV !== \"production\" ? warning(!(typeof icon === 'string' && icon.length > 2), 'Result', `\\`icon\\` is using ReactNode instead of string naming in v4. Please check \\`${icon}\\` at https://ant.design/components/icon`) : void 0;\n  if (ExceptionStatus.includes(`${status}`)) {\n    const SVGComponent = ExceptionMap[status];\n    return /*#__PURE__*/React.createElement(\"div\", {\n      className: `${className} ${prefixCls}-image`\n    }, /*#__PURE__*/React.createElement(SVGComponent, null));\n  }\n  const iconNode = /*#__PURE__*/React.createElement(IconMap[status]);\n  if (icon === null || icon === false) {\n    return null;\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: className\n  }, icon || iconNode);\n};\nconst Extra = _ref2 => {\n  let {\n    prefixCls,\n    extra\n  } = _ref2;\n  if (!extra) {\n    return null;\n  }\n  return /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-extra`\n  }, extra);\n};\nconst Result = _ref3 => {\n  let {\n    prefixCls: customizePrefixCls,\n    className: customizeClassName,\n    subTitle,\n    title,\n    style,\n    children,\n    status = 'info',\n    icon,\n    extra\n  } = _ref3;\n  const {\n    getPrefixCls,\n    direction\n  } = React.useContext(ConfigContext);\n  const prefixCls = getPrefixCls('result', customizePrefixCls);\n  // Style\n  const [wrapSSR, hashId] = useStyle(prefixCls);\n  const className = classNames(prefixCls, `${prefixCls}-${status}`, customizeClassName, {\n    [`${prefixCls}-rtl`]: direction === 'rtl'\n  }, hashId);\n  return wrapSSR( /*#__PURE__*/React.createElement(\"div\", {\n    className: className,\n    style: style\n  }, /*#__PURE__*/React.createElement(Icon, {\n    prefixCls: prefixCls,\n    status: status,\n    icon: icon\n  }), /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-title`\n  }, title), subTitle && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-subtitle`\n  }, subTitle), /*#__PURE__*/React.createElement(Extra, {\n    prefixCls: prefixCls,\n    extra: extra\n  }), children && /*#__PURE__*/React.createElement(\"div\", {\n    className: `${prefixCls}-content`\n  }, children)));\n};\nResult.PRESENTED_IMAGE_403 = ExceptionMap['403'];\nResult.PRESENTED_IMAGE_404 = ExceptionMap['404'];\nResult.PRESENTED_IMAGE_500 = ExceptionMap['500'];\nexport default Result;"],"mappings":";;AAAA,OAA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